﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;



class TwoGirlsOnePath
    {
        // 100 points BG Coder
        static void Main(string[] args)
        {

            long[] cellsCircle = GetInput(Console.ReadLine());
            BigInteger mollyFlowers = 0;
            BigInteger dollyFlowers = 0;
            long mollysCell = 0;
            long dollyCell = cellsCircle.Length - 1;
            long collectFlowersMolly = 0;
            long collectFlowersDolly = 0;
            bool mollyWins = false;
            bool dollyWins = false;
            

            while (true)
            {
                
                if (mollysCell == dollyCell)
                {
                    long jumpAhead = cellsCircle[mollysCell];
                    collectFlowersMolly = cellsCircle[mollysCell] / 2;
                    collectFlowersDolly = cellsCircle[dollyCell] / 2;
                    cellsCircle[mollysCell] %= 2;
                    mollysCell = (mollysCell + jumpAhead) % cellsCircle.Length;
                    dollyCell = dollyCell - jumpAhead;
                    while (dollyCell < 0)
                    {
                        dollyCell += cellsCircle.Length;
                    }

                }
                else
                {
                    collectFlowersMolly = cellsCircle[mollysCell];
                    collectFlowersDolly = cellsCircle[dollyCell];
                    cellsCircle[mollysCell] = 0;
                    cellsCircle[dollyCell] = 0;
                    mollysCell = (mollysCell + collectFlowersMolly) % cellsCircle.Length;
                    dollyCell = (dollyCell - collectFlowersDolly) % cellsCircle.Length;
                    if (dollyCell < 0)
                    {
                        dollyCell += cellsCircle.Length;
                    }
                }

                if (collectFlowersMolly == 0)
                {
                    dollyWins = true;
                }
                if (collectFlowersDolly == 0)
                {
                    mollyWins = true;
                }

                mollyFlowers += collectFlowersMolly;
                dollyFlowers += collectFlowersDolly;

                if (mollyWins && dollyWins)
                {
                    Console.WriteLine("Draw");
                    break;
                }
                
                else if (mollyWins)
                {
                    Console.WriteLine("Molly");
                    break;
                }

                else if (dollyWins)
                {
                    Console.WriteLine("Dolly");
                    break;
                }

            }

            Console.WriteLine("{0} {1}", mollyFlowers, dollyFlowers);

        }

        static long[] GetInput(string p)
        {
            string[] input = p.Split(' ');

            long[] circle = new long[input.Length];
            for (int i = 0; i < input.Length; i++)
            {
                circle[i] = long.Parse(input[i]);
            }

            return circle;
        }
    }

